// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';

export async function getWindowList(params: any) {
  const pageParams = {
    page: params.page,
    pageSize: params.pageSize,
  };
  return request('/api/v1/window/getWindowList', {
    method: 'POST',
    params: {
      ...pageParams,
    },
    data: params,
  });
}
export async function getById(params: any) {
  return request('/api/v1/window/getById', {
    method: 'GET',
    params: {
      ...params,
    },
  });
}

/** 添加飘窗 */
export async function createWindow(params: any) {
  return request('/api/v1/window/createWindow', {
    method: 'POST',
    data: params,
  });
}

/** 更新飘窗 */
export async function updateWindow(params: any) {
  return request('/api/v1/window/updateWindow', {
    method: 'POST',
    data: params,
  });
}
/** 删除飘窗 */
export async function batchDelete(params: any) {
  return request('/api/v1/window/batchDelete', {
    method: 'POST',
    data: params,
  });
}
